<div class="zs-body" data-ng-init="formInit('gzgzjjr', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{spedate:0}
    }) && loadData('gzgzjjr');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">内容管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">工作节假日</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzgzjjr') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzgzjjr', gzgzjjr.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzgzjjr')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!-- <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="id" ng-model="gzgzjjr.queryObject['id']"/>
                </span> -->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="类型" ng-model="gzgzjjr.queryObject['type']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_spedate' editable='false' showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzgzjjr.queryObject['spedate']" >
				   	</ag-Datebox>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="备注" ng-model="gzgzjjr.queryObject['bz']"/>
                </span>
            </div>
			<div class="operation item" style="margin-top:7px;">
				<input type="button" class="zs-btn orange" value="查询" 
					ng-click="loadData('gzgzjjr')"/>
			    <!--<a class="ope-1" ng-click="loadData('gzclda')"></a>
			    <a class="ope-2"></a>-->
			</div>
            <!-- <div class="operation item">
                <a class="ope-1" ng-click="loadData('gzgzjjr')"></a>
                <a class="ope-2"></a>
            </div> -->
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzgzjjr','allCheckbox');" />
                                    </th>
									<!-- <th>id</th> -->
									<th>类型</th>
									<th>日期</th>
									<th>备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzgzjjr.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzgzjjr',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  id -->
            						<!-- <td>
                                        <a ng-click="editRow('gzgzjjr',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td> -->
									<!--  类型 -->
            						<td>
                                        <a ng-click="editRow('gzgzjjr',r) && openWindow('edit');">
                                            <label ng-bind="r.typeName"></label>
                                        </a>
                                   </td>
									<!--  日期 -->
								   <td>
                                        <a ng-click="editRow('gzgzjjr',r) && openWindow('edit');">
                                            <label ng-bind="r.spedate | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  备注 -->
            						<td>
                                        <a ng-click="editRow('gzgzjjr',r) && openWindow('edit');">
                                            <label ng-bind="r.bz"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzgzjjr'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="工作节假日编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!-- <tr>
                                <td class="text" width="20%">id</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzgzjjr.editRow.id" class="zs-input" />
                                </td>
                            </tr> -->
          					<tr>
                                <td class="text" width="20%">类型</td>
                                <td class="left" width="30%">
									<ag-Combobox style="width:226px;height:28px;"
									    para="{	uDictionary:true,
									    		editable:true,
									    		dictionary:'p_gzjjr'}"
									    ng-model="gzgzjjr.editRow.type"
									    text-Value="gzgzjjr.editRow.typeName"/>
									<span ng-show="false"><input hide-novalidate="true" 
										alias="类型" required 
										ng-model="gzgzjjr.editRow.type"
										name="gzjjr_type"/></span>
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">日期</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_spedate' editable='false' showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzgzjjr.editRow.spedate" >
							   		</ag-Datebox>
                                </td>
								<span ng-show="false"><input hide-novalidate="true" 
									alias="日期" required 
									ng-model="gzgzjjr.editRow.spedate"
									name="gzjjr_date"/></span>
                            </tr>
          					<tr>
                                <td class="text" width="20%">备注</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzgzjjr.editRow.bz" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzgzjjr', gzgzjjr.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>